package com.lsl.learn.springcloud;

import myrule.MyselfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @ClassName DeptConsumer80_App
 * @Description TODO
 * @Author LSL
 * @Date 2019/8/17 13:53
 * @Version 1.0
 * @Email lsl.yx@foxmail.com
 **/
@SpringBootApplication
@EnableEurekaClient
// 在启动该微服务的时候 就能去加载我们自定义的Ribbon配置类，从而使配置生效
@RibbonClient(name = "MICROSERVICECLOUD-DEPT", configuration = MyselfRule.class)
public class DeptConsumer80_App {

    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer80_App.class, args);
    }
}
